package com.design;

/**
 * 测试类
 */
public class MainTest {
    public static void main(String[] args) {
        System.out.println("正常下单流程开始--------------");
        Order order = new Order("1001");
        order.pay();
        order.ship();
        order.receive();
        System.out.println("正常下单流程结束--------------");
        System.out.println("取消下单流程开始--------------");
        Order order1 = new Order("1002");
        order1.cancel();
        System.out.println("取消下单流程结束--------------");
        System.out.println("支付后取消流程开始--------------");
        Order order2 = new Order("1003");
        order2.pay();
        order2.cancel();
        System.out.println("支付后取消流程结束--------------");
    }
}
